<?php

namespace App\Kuafu\Order\Model;

use App\Kuafu\Base\Model\BaseModel;

class OrderStatisticalModel extends BaseModel
{
    public $incrementing = false;

    protected $connection = 'mysqlOrderAll';
    protected $table      = 'order_statistical';
//    protected $primaryKey = 'orderId';

    protected $fillable = [
        'shopId',
        'offNum',
        'num',
        'originalPrice',
        'discountPrice',
        'payPrice',
        'realPayPrice',
        'time',
        'type',
    ];

    const ORDER_STATISTICAL_TYPE_EAT_IN    = 1; // 总堂食
    const ORDER_STATISTICAL_TYPE_WAI_MAI   = 2; // 总外卖
    const ORDER_STATISTICAL_TYPE_IN_APPLET = 3; // 堂食小程序订单

    protected $hidden = [];
}
